package com.example.restaurant.controller.form;

import com.example.restaurant.common.allenum.DishTypeStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("修改菜类模型")
public class UpdateDishTypeForm {
    //菜类唯一id
    @NotNull
    @ApiModelProperty("菜类唯一id")
    @Min(1)
    private Integer id;

    //菜类名
    @NotBlank
    private String dishTypeName;

    //关联商户
    @NotBlank
    @ApiModelProperty("关联商户id")
    private String userId;

    //状态 启用 USE|淘汰
    @ApiModelProperty("状态 启用 USE|淘汰 DISCARD")
    @NotNull
    private DishTypeStatus status;

    @NotNull
    @ApiModelProperty("关联门店id")
    private int storeId;
}
